package com.zhiqihang.order;

import com.zhiqihang.result.ResultCode;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @ClassName OrderCode
 * @Description Violet
 * @Author 86183
 * @Date 2024/7/13 17:10
 * @Version 1.0
 */
@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum OrderCode implements ResultCode {

    ORDER_NOT_FOUND(2001, "操作失败"),
    ORDER_FOUND(2000, "操作成功");

    //状态码、状态码描述
    public Integer code;
    public String msg;

    @Override
    public int code() {
        return code;
    }

    @Override
    public String msg() {
        return msg;
    }
}
